package com.travel.yang.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.travel.yang.pojo.Role;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface RoleMapper extends BaseMapper<Role> {
    List<Integer> findRoleIdByAdmin(Integer aid);
    //删除角色的所有权限
    void deleteRoleAllPermission(Integer rid);
    //给角色添加权限
    void addRolePermission(@Param("rid") Integer rid,@Param("pid")Integer pid);
}
